package encapsulation;

/**
 * @classname:SE
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/27 22:08
 * @version: 0.1
 * @since:1.8
 */
public class SE {
    private int id;
    private String name;
    private String gender;
    private double salary;
    private int hot;
    public SE() {
        this.id = 0;
        this.name = "";
        this.gender = "男";
        this.salary = 0.0;
        this.hot = 0;
    }
    public SE(int id, String name, String gender, double salary, int hot) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.salary = salary;
        this.hot = hot;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public int getHot() {
        return hot;
    }

    public void setHot(int hot) {
        this.hot = hot;
    }


    public void show() {
        System.out.println("SE{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", salary=" + salary +
                ", hot=" + hot +
                '}');
    }
}
